

function getScreenWidth() {
    AndroidFullScreen.immersiveWidth(function(width){
        document.getElementById("widthValue").innerHTML = width;
    }, function(){
        document.getElementById("widthValue").innerHTML = "获取错误";
    });
}

function getScreenHeight() {
    AndroidFullScreen.immersiveHeight(function(height){
        document.getElementById("heightValue").innerHTML = height;
    }, function(){
        document.getElementById("heightValue").innerHTML = "获取错误";
    });
}

function setLeanMode() {
    AndroidFullScreen.leanMode(function(){
        document.getElementById("leanValue").innerHTML = "设置成功";
    }, function(errorInfo){
        document.getElementById("leanValue").innerHTML = "获取错误："+errorInfo;
    });
}

function setSystemUI() {
    AndroidFullScreen.showSystemUI(function(){
        document.getElementById("systemUIValue").innerHTML = "设置成功";
    }, function(errorInfo){
        document.getElementById("systemUIValue").innerHTML = "获取错误："+errorInfo;
    });
}

function setUnderStatusBar() {
    AndroidFullScreen.showUnderStatusBar(function(){
        document.getElementById("underBarInfo").innerHTML = "设置成功";
    }, function(errorInfo){
        document.getElementById("underBarInfo").innerHTML = "获取错误："+errorInfo;
    });
}

function setUnderSystemUI() {
    AndroidFullScreen.showUnderSystemUI(function(){
        document.getElementById("underSystemInfo").innerHTML = "设置成功";
    }, function(errorInfo){
        document.getElementById("underSystemInfo").innerHTML = "获取错误："+errorInfo;
    });
}

function setImmersiveMode() {
    AndroidFullScreen.immersiveMode(function(){
        document.getElementById("immersiveModeInfo").innerHTML = "设置成功";
    }, function(errorInfo){
        document.getElementById("immersiveModeInfo").innerHTML = "获取错误："+errorInfo;
    });
}

function setResetScreen() {
    AndroidFullScreen.resetScreen(function(){
        document.getElementById("resetInfo").innerHTML = "设置成功";
    }, function(errorInfo){
        document.getElementById("resetInfo").innerHTML = "获取错误："+errorInfo;
    });
}
